<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑用户角色</title>
</head>
<body>
<form action="/user/saveUserRole" method="post">
    <input type="hidden" name="userId" value="${userId}">
    <table border="1">
        <thead>
        <tr>
            <th></th>
            <th>角色名称</th>
        </tr>
        </thead>
        <tbody>
        <#list  list as item>
        <tr>
            <td><input type="checkbox" name="roles" value="${item.id}"></td>
            <td>${item.roleName}</td>
            <td>${item.desc!}</td>
            </td>
        </tr>
        </#list>
        </tbody>
    </table>
    <input type="submit" value="确定">
</form>

<br/>
<a href="/index"> 首页</a>
</body>
</html>